<?php ob_start(); session_start(); require "lib/dbCon.php";
require "lib/front-end.php"; 
if(isset($_GET['view'])) $view=$_GET['view']; else $view='';
?>
<!-- Tinh -->
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Download.info.vn</title>
<!-- base href="http://template-preview.com/opencart/300111402/" -->
<meta name="description" content="My Store">
<link href="templates/divstore/favicon.ico" rel="icon">
<link rel="stylesheet" type="text/css" href="templates/divstore/css/stylesheet.css">
<script type="text/javascript" src="templates/divstore/js/jquery-1.js"></script>
<script type="text/javascript" src="templates/divstore/js/jquery-ui-1.js"></script>
<link rel="stylesheet" type="text/css" href="templates/divstore/css/jquery-ui-1.css">
<script type="text/javascript" src="templates/divstore/js/jquery.js"></script>
<script type="text/javascript" src="templates/divstore/js/jquery_002.js"></script>
<link rel="stylesheet" type="text/css" href="templates/divstore/css/jquery.css" media="screen">
<!--[if IE]>
<script type="text/javascript" src="templates/divstore/js/catalog/view/javascript/jquery/fancybox/jquery.fancybox-1.3.4-iefix.js"></script>
<![endif]--> 
<script type="text/javascript" src="templates/divstore/js/tabs.js"></script>
<script type="text/javascript" src="templates/divstore/js/common.js"></script>

<script type="text/javascript" src="templates/divstore/js/jcarousellite.js"></script>
<script type="text/javascript">	$(function() { $(".carousel").jCarouselLite({ btnNext: ".next", btnPrev: ".prev" }); }); </script>

<script type="text/javascript" src="templates/divstore/js/jquery_003.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		/*SOCIAL*/		
		$('div.social a').animate({'opacity':'0.5'}, 50);
		$('div.social a').hover( 
		function(){
			$(this).animate({'opacity':'1'}, 200);
		}, function(){
			$(this).animate({'opacity':'.5'}, 200);					  
		});
			
		$(window).load(function() { 
		  $('#menu ul').fadeIn(120);
		})
		
		$('.box-product ul li > div, .product-grid > div, .box-product > div').hover(function(){
				$(this).find(".open_content").fadeIn(300);
		},function(){
				$(this).find(".open_content").fadeOut(200);
		})
			

		$('#menu ul li').has('div').addClass('arrow_down');
		$('.box-category > ul > li').has('ul').addClass('cat_arrow_down');
		$('.box-product > div:last').css({'margin-right':'0'});
		$('body').has('.phone').addClass('homa');

		$(window).load(function() { 
			$('#content').wrapInner(document.createElement('span'));
			$("#content > span > .breadcrumb + h1").insertBefore("#content > span");
		})

/*		$('#column-left').css('min-height', $('#content').height());
			$('#content').css('min-height', $('#column-left').height());
	$('#column-right').css('min-height', $('#content').height() );
	    $('#content').css('min-height', $('#column-right').height());
*/
	});

</script>	
<!--[if ! IE]-->					   
<script type="text/javascript">
	$(document).ready(function() { 
			$(".grid").live('click',function(){ //alert("a");
				location.reload();
	});
	});
</script>						   
<!--[endif]-->


<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="templates/divstore/css/catalog/view/theme/default/stylesheet/ie7.css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="templates/divstore/css/catalog/view/theme/default/stylesheet/ie6.css" />
<script type="text/javascript" src="templates/divstore/js/catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js"></script>
<script type="text/javascript">
DD_belatedPNG.fix('#logo img');
</script>
<![endif]-->
</head>
<body class="homa">
<div class="bg_bottom">
<div class="bg_top">
<div id="container">
<div id="header">
    <div id="logo"><a href="#"><img src="templates/divstore/images/logo.png" title="Download.info.vn" alt="Download.info.vn"></a></div>
        
    <div id="cart">
    <div class="heading">
      <h4>Shopping Cart</h4>
      <a><span id="cart_total">0 item(s) - $0</span></a></div>
    <div class="content"></div>
  </div>
  <div id="search">
    <div class="button-search"></div>
        <input name="filter_name" value="Search" onClick="this.value = '';" onKeyDown="this.style.color = '#dcba99';" type="text">
      </div>
  <div id="welcome">
        Welcome visitor you can <a href="http://template-preview.com/opencart/300111402/index.php?route=account/login">login</a> or <a href="http://template-preview.com/opencart/300111402/index.php?route=account/register">create an account</a>.      </div>
<!-- menu top -->
<?php require_once"blocks/menu_top.php"; ?><!-- End menu top -->
<!-- main menu -->
<?php require_once"blocks/menu.php"; ?>
<!-- End Main menu -->
</div>

<div id="notification"></div>
<div class="bg_content"> 
<?php
if($view!=''){
	switch($view){
		case "news" :include "blocks/news.php"; break;
		case "detail-book" :include "blocks/detail_book.php"; break;
		case "single" :include "blocks/single.php"; break;
		default : include "blocks/trangchu.php";
	}
} else{
		include "blocks/trangchu.php"	;
}
?>



<div style="clear:both"></div>
</div><!--   END  bg_content  -->

</div><!--   END  container  -->

<div id="footer">
	<div class="centr">
	  <div class="column">
		<h3>Information</h3>
		<ul>
		  		  <li><a href="http://template-preview.com/opencart/300111402/index.php?route=information/information&amp;information_id=4">About Us</a></li>
		  		  <li><a href="http://template-preview.com/opencart/300111402/index.php?route=information/information&amp;information_id=6">Delivery Information</a></li>
		  		  <li><a href="http://template-preview.com/opencart/300111402/index.php?route=information/information&amp;information_id=3">Privacy Policy</a></li>
		  		  <li><a href="http://template-preview.com/opencart/300111402/index.php?route=information/information&amp;information_id=5">Terms &amp; Conditions</a></li>
		  		</ul>
	  </div>
	  <div class="column">
		<h3>Customer Service</h3>
		<ul>
		  <li><a href="http://template-preview.com/opencart/300111402/index.php?route=information/contact">Contact Us</a></li>
		  <li><a href="http://template-preview.com/opencart/300111402/index.php?route=account/return/insert">Returns</a></li>
		  <li><a href="http://template-preview.com/opencart/300111402/index.php?route=information/sitemap">Site Map</a></li>
		</ul>
	  </div>
	  <div class="column">
		<h3>Extras</h3>
		<ul>
		  <li><a href="http://template-preview.com/opencart/300111402/index.php?route=product/manufacturer">Brands</a></li>
		  <li><a href="http://template-preview.com/opencart/300111402/index.php?route=checkout/voucher">Gift Vouchers</a></li>
		  <li><a href="http://template-preview.com/opencart/300111402/index.php?route=affiliate/account">Affiliates</a></li>
		  <li><a href="http://template-preview.com/opencart/300111402/index.php?route=product/special">Specials</a></li>
		</ul>
	  </div>
	  <div class="column">
		<h3>My Account</h3>
		<ul>
		  <li><a href="http://template-preview.com/opencart/300111402/index.php?route=account/account">My Account</a></li>
		  <li><a href="http://template-preview.com/opencart/300111402/index.php?route=account/order">Order History</a></li>
		  <li><a href="http://template-preview.com/opencart/300111402/index.php?route=account/wishlist">Wish List</a></li>
		  <li><a href="http://template-preview.com/opencart/300111402/index.php?route=account/newsletter">Newsletter</a></li>
		</ul>
	  </div>
	  <div id="powered">
		<div class="social right_20">
			<a style="opacity: 0.5;" href="#" class="_1"></a>
			<a style="opacity: 0.5;" href="#" class="_2"></a>
			<a style="opacity: 0.5;" href="#" class="_3"></a>
		</div><br>
		Powered By <a href="http://www.lptgroups.com">LPT Groups</a><br> DIV Store © 2013<br><br>
		<div class="pay_pall_img"></div>
	  </div>
  </div>
</div>

</div> <!--end bg_top-->
</div> <!--end bg_bottom-->
<div id="fancybox-tmp"></div><div id="fancybox-loading"><div></div></div><div id="fancybox-overlay"></div><div id="fancybox-wrap"><div id="fancybox-outer"><div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div><div id="fancybox-content"></div><a id="fancybox-close"></a><div id="fancybox-title"></div><a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a><a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a></div></div>

